package com.jt.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller//由于涉及到跳转功能
@RequestMapping("/user")
public class UserController {

    /**
     * 通过页面实现跳转
     * http://www.jt.com/user/register.html     register.jsp
     * http://www.jt.com/user/login.html        login.jsp
     */
    @RequestMapping("/{moduleName}")
    public String module(@PathVariable String moduleName){
        return moduleName;
    }
}
